//
//  HPConditionTextField.h
//  NumberTextField
//
//  Created by handpay on 13-1-22.
//  Copyright (c) 2013年 handpay. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    HPConditionType_Alphanumeric,           //字母数字
    HPConditionType_CardNo,                 // 银行卡号
    HPConditionType_PositiveInteger,        // 正整数
    HPConditionType_Money,                  // 金额数字
    HPConditionType_Numeric,           // 数字
    HPConditionType_MaxLength,              // 有最大长
    HPConditionType_ASCII,                  // 只能输入ascii码
    HPConditionType_Deafult,                // 默认
} HPConditionType;


@interface HPConditionTextField : UITextField

@property (nonatomic, assign) HPConditionType conditionType;

@property (nonatomic, assign) uint  maxLength;

@property (nonatomic, assign) float min;

@property (nonatomic, assign) float max;

@property (nonatomic, assign) UIEdgeInsets edgeInsets;

@property (assign) float keyBoardExtraHeight;

- (CGFloat)getKeyBoardExtraHeight;

@end
